
class Student:
    name = ''
    age = 0
    gender = ''

    def __init__(self, name, age, gender):
        self.name = name
        self.age = age
        self.gender = gender
        print('[成功] 已创建学生: %s' % self.name)

stu = Student("张三", 18, "男")
print(stu.name)